/*!============================================================================
 * @file scope_timer.hpp 
 * @Synopsis  
 * @author DongKai
 * @version 1.0
 * @date 2009年12月04日 09时23分59秒 
 *  Company: Beijing Feynman Software Technology Co., Ltd.
 */

#include <utilx/timer.hpp>

namespace utilx {

//! @description 
class ScopeTimer : public Timer
{
    public:
        /// constructor of ScopeTimer
        ScopeTimer(const char * name = NULL, unsigned long min_interval = 0L);

        /// destructor of ScopeTimer
        ~ScopeTimer();
    protected:

    private:
        const char * scope_name_;
        unsigned long min_interval_;
}; /* -----  end of class ScopeTimer  ----- */

#define FUNC_SCOPE_TIMING(limit) utilx::ScopeTimer st(__FUNCTION__, limit)
}
